Type Casting blocks

These blocks allow to change from one data type to another. There are four different blocks available:

../../../_images/type_casting_blocks.png

Type Casting blocks

  1. Bool to Real: It transforms a boolean variable to a real variable.

  2. Integer to Real: It converts an integer variable to a real variable.

  3. Real to Bool: It transforms a real variable to a boolean variable.

    Any number (negative numbers included), except 0, will be transformed to TRUE; 0 will be FALSE.

  4. Real to Integer: It converts a real variable to an integer variable.